package com.future.direction.presenter;

import com.future.direction.data.Optional;
import com.future.direction.data.bean.CourseAlbumBean;
import com.future.direction.data.bean.MainHomeBean;
import com.future.direction.data.bean.UserSignatureBean;
import com.future.direction.data.bean.WeekRecommendBean;
import com.future.direction.net.rto_rxbuild.RxHttpReponseCompat;
import com.future.direction.net.rto_subscriber.ProgressSubcriber;
import com.future.direction.presenter.contract.MainHomeContract;

import java.util.List;

import javax.inject.Inject;

/**
 * Created by ZHP on 2018/12/27/0027.
 */

public class MainHomePresenter extends BasePresenter<MainHomeContract.IMainHomeModel, MainHomeContract.View> {

    @Inject
    public MainHomePresenter(MainHomeContract.IMainHomeModel iMainHomeModel, MainHomeContract.View view) {
        super(iMainHomeModel, view);
    }

//    public void usersignature() {
//        mModel.usersignature().compose(RxHttpReponseCompat.compatResult())
//                .subscribe(new ProgressSubcriber<UserSignatureBean>(mContext, mView) {
//                    @Override
//                    public void onNext(UserSignatureBean userSignatureBean) {
//                        if (hasView()) {
//                            mView.usersignatureSucess(userSignatureBean);
//                        }
//                    }
//                });
//    }
//
//    public void weekrecommend() {
//        mModel.weekrecommend().compose(RxHttpReponseCompat.compatResult())
//                .subscribe(new ProgressSubcriber<List<WeekRecommendBean>>(mContext, mView) {
//                    @Override
//                    public void onNext(List<WeekRecommendBean> weekRecommendBeans) {
//                        if (hasView()) {
//                            mView.weekrecommendSucess(weekRecommendBeans);
//                        }
//                    }
//                });
//    }
//
//    public void courseAlbum(int pageNumber, int pageSize) {
//        mModel.courseAlbum(pageNumber, pageSize).compose(RxHttpReponseCompat.compatResult())
//                .subscribe(new ProgressSubcriber<List<CourseAlbumBean>>(mContext, mView) {
//                    @Override
//                    public void onNext(List<CourseAlbumBean> courseAlbumBeans) {
//                        if (hasView()) {
//                            mView.courseAlbumSucess(courseAlbumBeans);
//                        }
//                    }
//                });
//    }

}
